package singleton;
class SingletonObject{

}
public enum  SingletonFactory {

    INSTANCE;

    private SingletonObject instance;
    SingletonFactory() {
        instance = new SingletonObject();
    }
    public SingletonObject getInstance() {
        return instance;
    }
}
